From 60d99f7d06400e3e86a9ef18a1feaf5f671de5b7 Mon Sep 17 00:00:00 2001 From: "dan@guaranine.beaverton.ibm.com" Date: Fri, 2 Dec 2005 15:57:24 +0000 Subject: [PATCH] Make "xm list --long" generate device configuration data from xenstore state instead of internal xend state. Signed-off-by: Dan Smith --- tools/python/xen/xend/XendDomainInfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 9c9d23b436..0016f95893 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1016,9 +1016,9 @@ class XendDomainInfo: if self.infoIsSet('image'): sxpr.append(['image', self.info['image']]) - if self.infoIsSet('device'): - for (_, c) in self.info['device']: - sxpr.append(['device', c]) + for cls in controllerClasses: + for config in self.getDeviceConfigurations(cls): + sxpr.append(['device', config]) def stateChar(name): if name in self.info: -- 2.30.2